<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {
    $router->get('/', 'HomeController@index');
    $router->any('/config/setting', 'AdminConfigController@settingForm');//系统配置表单
    $router->resource('/config', 'AdminConfigController');//系统配置项目管理
    $router->any('/upload', 'AdminAttachmentController@upload');//文件上传
    $router->resource('/attachments', 'AdminAttachmentController');//附件管理


    $router->any('/demo', 'HomeController@demo');

});
